import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listConfiguration(query) {
  return request({
    url: '/biz/configuration/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getConfiguration(id) {
  return request({
    url: '/biz/configuration/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addConfiguration(data) {
  return request({
    url: '/biz/configuration',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateConfiguration(data) {
  return request({
    url: '/biz/configuration',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delConfiguration(id) {
  return request({
    url: '/biz/configuration/' + id,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportConfiguration(query) {
  return request({
    url: '/biz/configuration/export',
    method: 'get',
    params: query
  })
}


export function selectAlarm(){  
	var code=302001;
  return request({
  	url:'/biz/configuration/selectAlarmConfigByDevice',
  	method: 'post',
  	data:{
  		code:code
  	}
  })
}